home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / TTFHDX / DEFS.H < prev    next >
Encoding:
Text File  |  2001-02-09  |  2.9 KB  |  117 lines

  1. ;+
  2. ; Conditional assembly
  3. ;-
  4. SCDMA    equ    1            ; 0: not doing SCSI DMA
  5. ODMA    equ    0            ; 0: not using Old DMA controller
  6. SCFRDMA    equ    1            ; 0: not doing SCSI DMA to fast RAM
  7. VI    equ    0            ; 1: SCSI vectored-interrupts enabled
  8. DRIVER    equ    0            ; 0: not compiling for AHDI.PRG
  9. DEBUG    equ    1            ; 0: don't include debugging code
  10. RDWDL    equ    0            ; 0: don't need extra read from WDL
  11.  
  12.  
  13. ;+
  14. ; Restraints 
  15. ;-
  16. MAXLOG        equ    14        ; max # of log units w/o drv A & B
  17. MAXACSI        equ    8        ; maximum number of ACSI devices
  18. MAXSCSI        equ    8        ; maximum number of SCSI devices
  19. ;MAXAT        equ    2        ; maximum number of AT drives
  20. MAXAT        equ    1        ; maximum number of AT drives
  21. ACSIUNT        equ    7        ; highest ACSI unit number
  22. SCSIUNT        equ    15        ; highest SCSI unit number
  23. ;ATUNT        equ    17        ; highest AT unit number
  24. ATUNT        equ    16        ; highest AT unit number
  25. MAXACSECTS    equ    254        ; max # of sectors at one ACSI gulp
  26. MAXSCSECTS    equ    65534        ; max # of sectors at one SCSI gulp
  27. MAXATSECTS    equ    256        ; max # of sectors at one AT gulp
  28.  
  29.  
  30. ;+
  31. ; Offsets to ...
  32. ;-
  33. DOSPM        equ    $1be        ; MSDOS boot sect's partition map
  34. DOSSIG        equ    $1fe        ; MSDOS boot sect's signature
  35. HDSIZ        equ    $1c2        ; offset to GEMDOS root sect's 
  36.  
  37.  
  38. ;+
  39. ; Constants and Variables
  40. ;-
  41. SIG        equ    $55aa        ; signature for valid MSDOS boot sects
  42. NRETRIES    equ    3        ; #retries-1
  43. MAXNPART    equ    3        ; #partition entries in root sect - 1
  44. BPBLEN        equ    18        ; length of bpb entry in bytes
  45. FATLEN        equ    64        ; max fat size = 64 sectors
  46. SERLEN        equ    3        ; length of a serial # in bytes
  47. CHKDATE        equ    $19870422    ; ROM date for bootstop checking
  48.  
  49.  
  50. ;+
  51. ; Number of bytes per Buffer Control Block (excluding the data block itself)
  52. ;
  53. ; struct_bcb {
  54. ;     struct_bcb    *b_link;    /* 4 bytes */
  55. ;    int        b_neg1;        /* 2 bytes */
  56. ;    int        b_private[5];    /* 10 bytes */
  57. ;    char        *b_bufr;    /* 4 bytes */
  58. ; };
  59. ;
  60. ; For GEMDOS buffer lists.
  61. ;-
  62. BCBLEN        equ    20
  63.  
  64.  
  65. ;+
  66. ; Number of bytes per AT drive parameters structure
  67. ;
  68. ; struct_atdp {
  69. ;    int    nhead;        /* # of data heads */
  70. ;    int    nspt;        /* # of physical sectors per track */
  71. ; };
  72. ;-
  73. ATDPLEN        equ    4
  74.  
  75.  
  76. ;+
  77. ; for extension of OS pool
  78. ;-
  79. chunksiz    equ     66        ; #bytes/chunk
  80. chunkno        equ     4        ; chunk# (4 16-byte chunks)
  81.  
  82.  
  83. ;+
  84. ; for checking existence of fast RAM
  85. ;    If long word at _ramvalid == RAMMAGIC
  86. ; then  _ramtop is valid.  If _ramtop contains 0, no fast RAM is available,
  87. ; else _ramtop contains the address of top (end) of memory
  88. ;
  89. ; Fast RAM always starts at $01000000.
  90. ; _ramtop may hold $01000000 meaning there is no fast RAM!
  91. ;
  92. ; RAMRSV must be smaller than MAXACSECTS
  93. ;-
  94. RAMMAGIC    equ    $1357bd13    ; magic cookie for fast RAM
  95. RAMBOT        equ    $01000000    ; where fast RAM starts
  96. RAMRSV        equ    $80        ; # sectors of reserved RAM (64k)
  97.  
  98.  
  99. ;+
  100. ; Vector address
  101. ;-
  102. BERR        equ    $8        ; Bus ERRor vector
  103. IINS        equ    $10        ; Illegal INStruction vector
  104.  
  105.  
  106. ;+
  107. ; Machine type as defined in the _MCH cookie
  108. ;-
  109. _MCH        equ    $5f4d4348   ; _MCH
  110. ST        equ    0
  111. STE        equ    $00010000
  112. STBOOK        equ    $00010008
  113. MSTE        equ    $00010010
  114. SPARROW        equ    $00010100
  115. TT        equ    $00020000
  116.  
  117.